package com.sc.datacollect.netty.model;

public enum FailedType {
	Succeed("成功", 1),
	NoNeed("不需要", -1),
	Connect("连接失败", -2),
	NoSource("无数据源", -3),
	Request("请求失败", -4),
	NoResponse("无响应", -5),
	PacketFormat("包格式错误", -6),
	InvalidValueType("值类型无效", -7),
	Canceled("已取消", -8),
	NoReceiver("无接收者", -9),
	DenyTrans("远程端拒绝上传", -10),
	Unknown("未知错误", 0);
	
	private String name;
	private int value;
	
	private FailedType(String name, int value) {
		this.setName(name);
		this.setValue(value);
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}
}
